package cate.common.table.res.hero.back.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.hero.back.row.HeroBackConsumeRow;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "英雄回退消耗")
public class HeroBackConsumeSheet extends ESheet<HeroBackConsumeRow> {

    @Override
    public String getSheetName() {
        return "英雄回退消耗";
    }

    @Override
    protected HeroBackConsumeRow buildRow() {
        return new HeroBackConsumeRow();
    }

    public HeroBackConsumeRow getRow(int initStar) {
        for (HeroBackConsumeRow row : this.getList()) {
            if (row.id == initStar) {
                return row;
            }
        }
        return null;
    }
}
